__author__ = 'Muscle'
import mui.muicommon
import os
import os.path
import mui.muiApp as muiApp
import mui.InternalUse.muiResource as muiResource
import mui.InternalUse.muiconfig as muiconfig
import mui.CExt.muiDX as muiDX

import mui.muianim as anim
from mui.muiwindow import MUIWindow, MUIDialogWindow
from mui.muianim import _STATE_ as AnimState

def muiInit(mainFunc):
    modpath = mui.muicommon.module_path(mainFunc)
    moddir = os.path.dirname(modpath)
    muiconfig.g_ResourceDirs.append(moddir + "\\resourceData\\images")
    muiconfig.g_ResourceDirs.append(moddir + "\\resourceData\\UIImages")
    muiconfig.g_bShowFPS = True

def muiUnInit():
    muiResource.clearResource()

